//公告接口
import request from '@/utils/request'

//获取公告APi
export const getAnnouncementApi = (query) => {
    return request({
        url: '/appuser/announcement/list',
        method: 'get',
        params: query,
    })
}

//修改公告APi
export const editAnnouncementApi = (data) => {
    return request({
        url: '/appuser/announcement/edit',
        method: 'post',
        data,
    })
}

//删除公告APi
export const deleteAnnouncementApi = (id) => {
    return request({
        url: `/appuser/announcement/${id}`,
        method: 'DELETE',
    })
}
//添加公告APi
export const addAnnouncementApi = (data) => {
    return request({
        url: '/appuser/announcement/add',
        method: 'post',
        data,
    })
}